from base.base import Base
from time import sleep
from selenium.webdriver.common.by import By

class SouSuoPage(Base):

    sousuokuang = (By.ID,'')

    shurukuang = (By.XPATH,'')

    sousuo = 'new UiSelector().text("搜索")'

    dy = (By.XPATH,'//')

    def sousuoyewu(self):
        self.loc_ele(self.sousuokuang).click()
        sleep(4)
        self.loc_ele(self.shurukuang).send_keys('')
        sleep(4)
        self.loc_ui_ele(self.sousuo).click()
        sleep(4)